<?php

$host = 'localhost';
$name = 'root';
$pwd = '';
$dbname = 'drag';

$conn = new mysqli($host, $name, $pwd, $dbname);

if($conn->connect_error) die("conneect failed");

// $sql = "SELECT * FROM score";
// $result = $conn->query($sql);
 
// if ($result->num_rows > 0) {
//     // 输出数据
//     // while($row = $result->fetch_assoc()) {
//     //     echo $row["id"] . $row['name'] . $row['time'] . $row['num'];
//     // }
// }